const data = {
  postName: { type: 'string', description: '岗位名称' },
  type: { type: 'integer', description: '招聘类型(1.社招 2.校招 3.实习)' },
  minSalary: { type: 'integer', description: '最低薪资' },
  maxSalary: { type: 'integer', description: '最高薪资' },
  description: { type: 'string', description: '工作描述' },
  requirements: { type: 'string', description: '职位要求' },
  demand: { type: 'integer', description: '招聘人数(不填为不限人数)' },
  isTop: { type: 'boolean', description: '是否置顶（默认为否）' },
  status: { type: 'integer', description: '职位状态（1.发布中 2.已下架）' }
}
const busi = {
  busiCode: { type: 'string', description: '业务状态' },
  msg: { type: 'string', description: '业务描述' }
}
module.exports = {
  postReq: {
    ...data
  },
  addPostRes: {
    ...busi,
    postInfo: { type: 'postRes' }
  },
  postRes: {
    id: { type: 'string', description: '主键id' },
    ...data,
    reading: { type: 'integer', description: '阅读量' },
    lastTime: { type: 'string', description: '上次更新时间' },
    isCollect: { type: 'boolean', description: '是否收藏' }
  }
}
